<?php 
$user=$session->read('User');
$companyid=$session->read("companyid");
$isflag=$action->checkPermissions($user,$companyid);
?>
<div class="right_side_operate_area">
	<div class="right_side_title left">
    	<h2>
		<?php 
		$companyname=$session->read("companyname");
		echo $html->link($companyname,"/companys/showinfosummary/".$companyid);
		?>
    	</h2>
    	<div class='clear'></div>
    </div>
    <div class="right item_add_btn">
		<?php echo $html->link(__("取消编辑",true),"/companys/depcosts/");?>
	</div>
    <div class="clear"></div>
</div>
<?php
echo $form->create('Company', array('url' => "/companys/editachieve",'id'=>'patentform','enctype'=>'multipart/form-data','onsubmit'=>""));
?>
<div class="right_side_scollbar">
<div class="detail_info_panel">
<?php	if($_GET['sta']=="1"){?>
	<div class="details_item_line">
		<div class="details_item">
			<div class="form_left_title left">产出成果数：</div>
			<div class="form_right_e_input left">
			<?php echo $form->text('CompAchievement.output_achievement',array("maxlength"=>"100","onkeypress"=>"checkIfNum(event)","onkeydown"=>"inputOnlyNum(event)","style"=>"width:147px"));?>
			</div>
		</div>
	</div>
	
	<div class="details_item_line">
		<div class="details_item">
		    <div class="form_left_title left"><?php echo "备注" ;?>：</div>
		    <div class="form_right_e_input left"><?php echo $form->textarea('CompAchievement.output_remark');?></div>	    
		</div>
	</div>
<?php }?>

<?php	if($_GET['sta']=="2"){?>
	<div class="details_item_line">
		<div class="details_item">
			<div class="form_left_title left">获奖成果数：</div>
			<div class="form_right_e_input left">
			<?php echo $form->text('CompAchievement.award_achievement',array("maxlength"=>"100","onkeypress"=>"checkIfNum(event)","onkeydown"=>"inputOnlyNum(event)","style"=>"width:147px"));?>
			</div>
		</div>
	</div>
	
	<div class="details_item_line">
		<div class="details_item">
		    <div class="form_left_title left"><?php echo "备注" ;?>：</div>
		    <div class="form_right_e_input left"><?php echo $form->textarea('CompAchievement.award_remark');?></div>	    
		</div>
	</div>
<?php }?>

<?php 
echo $form->hidden('CompAchievement.cid',array('value' => $companyid)) ;
echo $form->hidden('CompAchievement.id') ;
?>
<div class="details_item_line">
	<div class="details_item">
	    <div class="form_left_title left"></div>
		<div class="form_add_submit left">
	   		 <?php echo $form->submit(__('Save',true), array("id"=>"adduser","name"=>"submit","class"=>"buttom","div"=>false));  ?>
	    </div>
	</div>
</div>
</div>
</div>

